import type { SwiperProps } from "antd-mobile";

/**
 * 轮播项类型定义
 */
export interface SwiperItemType {
	id?: string | number;
	imageUrl: string;
	// 可以添加其他自定义字段
	[key: string]: any;
}

/**
 * 轮播组件属性定义
 */
export interface GreatJoySwiperProps extends SwiperProps {
	items: SwiperItemType[];
	height?: number | string;
	autoplay?: boolean;
	interval?: number;
	loop?: boolean;
	lazyLoadThreshold?: number;
	placeholder?: React.ReactNode;
	onSlideChange?: (_index: number) => void;
	renderCustomItem?: (_item: SwiperItemType, _index: number) => React.ReactNode;
	className?: string;
}
